package com.example.hotelrear.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.hotelrear.entity.Order;
import com.example.hotelrear.mapper.OrderMapper;
import com.example.hotelrear.service.OrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author FengXiao
 * @since 2023-08-28
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
@Resource
private OrderMapper orderMapper;
    @Override
    public int paid(int id) {
        return orderMapper.paid(id);
    }

    @Override
    public int notpaid(int id) {
        return orderMapper.notpaid(id);
    }

    @Override
    public int TobeComment(int id) {
        return orderMapper.TobeComment(id);
    }

    @Override
    public List<Order> findAllOrderById(int id) {
        return orderMapper.findAllOrderById(id);
    }

    @Override
    public List<Order> findNoPaidOrderById(int id) {
        return orderMapper.findNoPaidOrderById(id);
    }

    @Override
    public List<Order> findPaidOrderById(int id) {
        return orderMapper.findPaidOrderById(id);
    }

    @Override
    public List<Order> findNoCommentOrderById(int id) {
        return orderMapper.findNoCommentOrderById(id);
    }

    @Override
    public List<Order> findInactiveOrderById(int id) {
        return orderMapper.findInactiveOrderById(id);
    }

    @Override
    public List<Order> findCancleOrderById(int id) {
        return orderMapper.findCancleOrderById(id);
    }

}
